package com.opencloud.base.client.service;

import com.opencloud.base.client.model.AuthorityMenu;
import com.opencloud.base.client.model.entity.BaseRole;
import com.opencloud.common.model.ResultBody;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

public interface ITenantServiceClient {

    @GetMapping("/tenant/getRolesByTenantId")
    ResultBody<List<BaseRole>> getRolesByTenantId(@RequestParam(value = "tenantId") String tenantId);

    @GetMapping("/tenant/user/menu")
    ResultBody<List<AuthorityMenu>> findAuthorityMenu();
}
